home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c / 576 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.1 KB

  1. Path: sdrc.com!thor!scjones
  2. From: larry.jones@sdrc.com (Larry Jones)
  3. Newsgroups: comp.std.c
  4. Subject: Re: Valid floating-point constants ?
  5. Date: 15 Mar 1996 16:01:51 GMT
  6. Organization: SDRC Engineering Services
  7. Distribution: world
  8. Message-ID: <4ic49f$cq8@info1.sdrc.com>
  9. References: <4ibmd9$aq5@gate.seicom.net>
  10. NNTP-Posting-Host: thor.sdrc.com
  11. Originator: scjones@thor
  12.  
  13. In article <4ibmd9$aq5@gate.seicom.net>, tydeman@tybor.com   (Fred Tydeman) writes:
  14. > I have run across some tools and compilers that do not like:
  15. >   08.5    09.   09e0
  16. > They complain that those are invalid octal integers.  I claim
  17. > that they are valid decimal floating-point constants. Who is right?
  18.  
  19. You are.  Each of those should be parsed as a single pp-number
  20. preprocessing token which has the form of a floating-constant, not an
  21. octal-constant.  There is nothing in the syntax or semantics that
  22. disallows leading zeros in floating-constants.
  23. ----
  24. Larry Jones, SDRC, 2000 Eastman Dr., Milford, OH  45150-2789  513-576-2070
  25. larry.jones@sdrc.com
  26. ANY idiot can be famous.  I figure I'm more the LEGENDARY type! -- Calvin
  27.